package com.surfilter.modules.module.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.surfilter.modules.module.model.ActionModel;
import com.surfilter.modules.module.model.ModuleModel;

public interface ModuleMrg{
	
	/**************************Module相关*****************************/
	
	public List<ModuleModel> getAllValidModules();
	public List<ModuleModel> getAllModules();
	public ModuleModel addModule(ModuleModel moduleModel,HttpServletRequest request);
	public int chgModule(ModuleModel moduleModel,HttpServletRequest request);
	public int delModule(ModuleModel moduleModel);
	public int startModule(ModuleModel moduleModel,HttpServletRequest request);
	public int stopModule(ModuleModel moduleModel,HttpServletRequest request);
	
	/**************************Action相关*****************************/
	public List<ActionModel> getActionsOfModule(int moduleId);
	public boolean saveActions(List<ActionModel> models,List<Integer> delActionIds,HttpServletRequest request);
}
